ActionController::Routing::Routes.draw do |map|
  map.with_options :controller => :user_sessions do |u|
    u.login   '/login',  :action => :new,     :conditions => {:method => :get}
    u.connect '/login',  :action => :create,  :conditions => {:method => :post}
    u.logout  '/logout', :action => :destroy, :conditions => {:method => :delete}
  end
  
  map.resources :users
  
  map.resources :announcements
  
  map.root :controller => :dashboards, :action => :show
end
